<%@ page language="Java" import="java.util.*,descriptor.*,cv.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	String diary = (String)request.getAttribute("diary");
	String error1 = (String)request.getAttribute("error1");
%>

<html>
	<jsp:include page="StudentHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Student" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu7'));">
		<jsp:include page="StudentPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="StudentMenu.jsp" ></jsp:include>
			<div id="content">
				<h3 class="posttitle">Student - Placement Diary</h3>
				<div class="entry">
					<% if(error1 == null)
						{
					%>
					<p><%= diary %></p>
					<% 
						}
						else
						{ 
					%>
							<p><%= error1 %></p>
							<form name="editDiary" method="post">
								<input type="hidden" name="action" value="editDiary">     
							</form> 
							<a href="javascript:document.editDiary.submit();" title="Edit your diary">Edit</a>	
				<%	 	
						} 
				%>
				</div>
	    	</div>
			<jsp:include page="StudentPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>